<?php
/**
 * 描述：数据-行业。
 * @final
 */
final class Exec_Data_Trade extends Exec
{
    public function Get()
    {
        $identifying=Functions::UrlArgs('identifying');
        if(!is_numeric($identifying)){
            echo 'error';
            return;
        }

        $tmp=NULL;
        $data=DB::GetRows('select * from trade where Identifying_Parent='.$identifying.' order by ID asc');
        foreach($data as &$row)
        {
            $tmp=$tmp.($row['Name'].'-'.$row['Identifying'].'|');
        }
        echo substr($tmp,0,strlen($tmp)-1);
    }
}
?>